package com.andyage.admin.action;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping("/admin")
public class IndexAction {

	@RequestMapping(value = "/MainMenu", method = RequestMethod.GET)
	public ModelAndView loadIndex(ModelAndView mav) {
		mav.setViewName("admin/main");
		return mav;
	}

	@RequestMapping("/adStaff")
	public ModelAndView loadAdmin(ModelAndView mav) {
		mav.setViewName("admin/adStaff");
		return mav;
	}

	@RequestMapping("/adteuser")
	public ModelAndView adteUser(ModelAndView mav) {
		mav.setViewName("admin/adteuser");
		return mav;
	}

	@RequestMapping("/aduser")
	public ModelAndView adUser(ModelAndView mav) {
		mav.setViewName("admin/aduser");
		return mav;

	}

	@RequestMapping("/adwxuser")
	public ModelAndView adwxUser(ModelAndView mav) {
		mav.setViewName("admin/adwxuser");
		return mav;
	}

	@RequestMapping("/adminlogin")
	public ModelAndView adminLogin(ModelAndView mav) {
		mav.setViewName("adminLogin");
		return mav;
	}

	@RequestMapping("/adfodder")
	public ModelAndView imageManagement(ModelAndView mav) {
		mav.setViewName("admin/adfodder");
		return mav;
	}

	@RequestMapping("/video")
	public ModelAndView videoManagement(ModelAndView mav) {
		mav.setViewName("admin/video");
		return mav;
	}

	@RequestMapping("/publishitem")
	public ModelAndView publishItems(ModelAndView mav) {
		mav.setViewName("admin/publishitem");
		return mav;
	}

	@RequestMapping("/aditem")
	public ModelAndView aditem(ModelAndView mav) {
		mav.setViewName("admin/aditem");
		return mav;
	}

	@RequestMapping("/adcomment")
	public ModelAndView adComment(ModelAndView mav) {
		mav.setViewName("admin/adcomment");
		return mav;
	}

	@RequestMapping("/receiver_address")
	public ModelAndView receiverAddress(ModelAndView mav) {
		mav.setViewName("admin/receiver_address");
		return mav;
	}

	@RequestMapping("/adorder")
	public ModelAndView adOrderPage(ModelAndView mav) {
		mav.setViewName("admin/adorder");
		return mav;
	}

	@RequestMapping("/adfeedBack")
	public ModelAndView adfeedBack(ModelAndView mav) {
		mav.setViewName("admin/adfeedback");
		return mav;
	}
	@RequestMapping("/adprojectapply")
	public ModelAndView adprojectApply(ModelAndView mav){
		mav.setViewName("admin/projectapply");
		return mav;
	}
	@RequestMapping("/role")
	public ModelAndView rolePage(ModelAndView mav){
		mav.setViewName("admin/role");
		return mav;
	}
	@RequestMapping("/projectPublish")
	public ModelAndView projectPublish(ModelAndView mav) {
		mav.setViewName("admin/projectpublish");
		return mav;
	}
	@RequestMapping("/drawOff")
	public ModelAndView drawOff(ModelAndView mav){
		mav.setViewName("admin/choujiang");
		return mav;
	}
	@RequestMapping("/moneyCount")
	public ModelAndView moneyCount(ModelAndView mav){
		mav.setViewName("admin/moneycount");
		return mav;
	}
	@RequestMapping("/logInfo")
	public ModelAndView logInfo(ModelAndView mav) {
		mav.setViewName("admin/adlog");
		return mav;
	}
	@RequestMapping("/orderCount")
	public ModelAndView orderCount(ModelAndView mav) {
		mav.setViewName("admin/ordercount");
		return mav;
	}
	@RequestMapping("/choujiangSendSMS")
	public ModelAndView choujiangSendSMS(ModelAndView mav) {
		mav.setViewName("admin/choujiangSendSMS");
		return mav;
	}
	
	@RequestMapping("/withDrawPage")
	public ModelAndView withDrawPage(ModelAndView mav) {
		mav.setViewName("admin/withdraw");
		return mav;
	}
	@RequestMapping("/activitypublish")
	public ModelAndView activitypublish(ModelAndView mav) {
		mav.setViewName("admin/activitypublish");
		return mav;
	}
	@RequestMapping("/adshare")
	public ModelAndView adShare(ModelAndView mav){
		mav.setViewName("admin/adshare");
		return mav;
	}
}
